// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import VueAxios from 'vue-axios'
//引入全局样式表
import "./assets/global.css"

// // 导入axios（创建项目是下载的依赖）
import axios from 'axios'
// // // 挂载axios
Vue.prototype.$http = axios
// // 设置访问路径
axios.defaults.baseURL = "http://localhost:8080"

Vue.config.$http = axios

// //挂载路由
// Vue.use(router).mount('#app')

Vue.use(VueAxios, axios)

Vue.use(ElementUI);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})
